﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NVSecurity.Models;
namespace NVSecurity.Controllers
{
    public class TrainingController : Controller
    {
        NVSecurityEntities db = new NVSecurityEntities();
        //
        // GET: /Training/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult GetTrainingList()
        {
            var trainingList = db.Trainings.ToList();
            return View(trainingList);
        }
        public ActionResult Detail(int id)
        {
            var training = db.Trainings.Find(id);
            return View(training);
        }

    }
}
